import requests

def main():

    headers = {
        'User-Agent':'Mozilla/5.0 (Linux; U; Android 4.1.1; zh-cn;  MI2 Build/JRO03L) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 XiaoMi/MiuiBrowser/1.0',
    }

    url = 'http://m.che43.com/'

    res = requests.get(url = url, headers = headers)
    with open('xieliuli.html','wb') as f:
        f.write(res.content)

if __name__ == "__main__":
    main()